def calc(*num):
	sum = 0;
	for n in num:
		sum = sum + n * n;
	print(sum);
	return sum;

calc(*(1,2,3));	
calc(*[1,3,2])